/*
 * TITLE:Request
 * AUTHOR:
 * PURPOSE: 
 */
package clientrequest;

import java.util.Vector;

/**
 *
 * @author
 */
public class RequestChatPrivate extends RequestToServer {

    @Override
    public void send(short requestCode, Vector args) {
       	// Protocol: (String) CharacterName (String) inviteMessage
    	String buddyName = (String) args.get(0);
    	String chatMessage = (String) args.get(1);
    	
        short sizeofrequest = (short)(4+4*(buddyName.length())+4*(chatMessage.length()));
        super.writeShort(sizeofrequest);
        super.writeShort(requestCode);
        super.writeString(buddyName);
        super.writeString(chatMessage);
    }

}
